import request from "@/utils/request";
export const apis = {
  baojing: () => {
    return request({
      url: "/common/getAlertCount",
      method: "get",
    });
  },
  scfxtj: (params) => {
    return request({
      url: "/common/getDangerCount",
      method: "get",
      params,
    });
  },
  yjll: (params) => {
    return request({
      url: "/duty/message/current",
      method: "get",
      params,
    });
  },
  yhtj: (params) => {
    return request({
      url: "/common/getHiddenCount",
      method: "get",
      params,
    });
  },
  yhlist: (params) => {
    return request({
      url: "/preventionHiddenRegister/list",
      method: "get",
      params,
    });
  },
  zylist: (params) => {
    return request({
      url: "/job/plan/bill/declare/list",
      method: "get",
      params,
    });
  },
  // 3D接口
  //视频
  sp: () => {
    return request({
      url: "/sp/message",
      method: "get",
    });
  },
  // 视频漫游
  spmy: () => {
    return request({
      url: "/spmy/message",
      method: "get",
    });
  },
  // 所有人员
  syry: () => {
    return request({
      url: "/syry/message",
      method: "get",
    });
  },
  // 应急人员
  yj: () => {
    return request({
      url: "/yj/message",
      method: "get",
    });
  },
  // 值班人员
  zbry: () => {
    return request({
      url: "/zbry/message",
      method: "get",
    });
  },
  // 暂停漫游
  zt: () => {
    return request({
      url: "/zt/message",
      method: "get",
    });
  },
  // 漫游速度
  sd: (params) => {
    return request({
      url: "/sd/message",
      method: "get",
      params,
    });
  },
  // 电子围栏
  dzwl: () => {
    return request({
      url: "/dzwl/message",
      method: "get",
    });
  },
  // 访客信息
  fkxi: () => {
    return request({
      url: "/fkxi/message",
      method: "get",
    });
  },
  // 罐区
  guan: () => {
    return request({
      url: "/guan/message",
      method: "get",
    });
  },
  // 气体分析
  qt: () => {
    return request({
      url: "/qt/message",
      method: "get",
    });
  },
};

// 报警数量
export const dangerBj = () => {
  return request({
    url: "/sysMonitor/countByType",
    method: "get",
  });
};

// 报警超时列表
export const bjcs = () => {
  return request({
    url: "/sysMonitor/countByState",
    method: "get",
  });
};
// 重大危险源列表
export const zdwxy = () => {
  return request({
    url: "/sysDangerPoint/getData",
    method: "get",
  });
};
export const history = (params) => {
  return request({
    url: "/historyPointData/getHistoryData",
    method: "get",
    params,
  });
};

// 监测点位状态数量
export const jcdw = () => {
  return request({
    url: "/sysMonitor/countAll",
    method: "get",
  });
};
// 报警列表
export const bjlb = () => {
  return request({
    url: "/sysMonitor/countAllAnomaly",
    method: "get",
  });
};

export const jklb = (params) => {
  return request({
    url: "/monitor/point/list",
    method: "get",
    params,
  });
};

// 分析单元及风险事件数量
export const fxAndgk = () => {
  return request({
    url: "/preventionPlanTask/swDyCountAndSjCount",
    method: "get",
  });
};
// 管控措施及隐患数量
export const gkAndyh = (params) => {
  return request({
    url: "/preventionPlanTask/swGkCountAndYhCount",
    method: "get",
    params,
  });
};

// 作业数量饼图
export const zyslbt = (params) => {
  return request({
    url: "/app/create/job/bill/countJboTypeNumber",
    method: "get",
    params,
  });
};

// 作业列表
export const zyList = () => {
  return request({
    url: "/job/plan/bill/declare/queryJobTimeoutList",
    method: "get",
  });
};

export const send = (data) => {
  return request({
    url: "/common/send",
    method: "post",
    data,
  });
};
// 当前隐患数量
export const dqyhsl = () => {
  return request({
    url: "/preventionPlanTask/sWYhYbAndZdCount",
    method: "get",
  });
};

// 历史隐患趋势
export const lsyhqs = () => {
  return request({
    url: "/preventionPlanTask/sWYearCount",
    method: "get",
  });
};
// 风险分析清单集合
export const fxfxdyjh = () => {
  return request({
    url: "/preventionPlanTask/sWfxfxList",
    method: "get",
  });
};

// 发现隐患的巡检记录集合
export const fxyhxjjl = () => {
  return request({
    url: "/preventionPlanTask/swHiddenList",
    method: "get",
  });
};

// 巡检点巡检路线巡检计划数量
export const xjNum = () => {
  return request({
    url: "/preventionPlanTask/swDwAndLxAndJhCount",
    method: "get",
  });
};
// 巡检任务饼图
export const xjrwtj = (params) => {
  return request({
    url: "/inspectionPlanTaskCount/countAll",
    method: "get",
    params,
  });
};
// 作业数量
export const zysl = (params) => {
  return request({
    url: "/app/create/job/bill/countJboNumber",
    method: "get",
    params,
  });
};

// 机制运行情况
export const jzyxqk = (params) => {
  return request({
    url: "/preventionPlanTask/getCheckHiddenCount",
    method: "get",
    params,
  });
};

// 隐患任务饼图
export const yhrwbt = (params) => {
  return request({
    url: "/preventionCheckTask/countTaskDayWeekMonth",
    method: "get",
    params,
  });
};

// 隐患整改饼图
export const yhzgbt = (params) => {
  return request({
    url: "/preventionHiddenRegister/countHidden",
    method: "get",
    params,
  });
};
// 三率
export const sl = (params) => {
  return request({
    url: "/preventionPlanTask/getRwAndYhAndFxCount",
    method: "get",
    params,
  });
};
// 单元列表
export const dylb = (params) => {
  return request({
    url: "/preventionPlanTask/countUnit",
    method: "get",
    params,
  });
};
// 隐患整改列表
export const yhzglb = (params) => {
  return request({
    url: "/preventionHiddenRegister/listAll",
    method: "get",
    params,
  });
};

// 厂区总人数
export const cqzrs = (params) => {
  return request({
    url: "/common/personCount",
    method: "get",
    params,
  });
};

// 危化品
export const wxhxp = (params) => {
  return request({
    url: "/danger/chemical/query/detailed/count",
    method: "get",
    params,
  });
};

// 企业基础信息
export const qyjcxx = (params) => {
  return request({
    url: "/enterpriseBasic/list",
    method: "get",
    params,
  });
};
